To get the flag, start the above exercise, then use cURL to download the file returned by '/download.php' in the server shown above.
What is the HTTP method used while intercepting the request? (case-sensitive)?
GET
Send a GET request to the above server, and read the response headers to find the version of Apache running on the server, then submit it as the answer. (answer format: X.Y.ZZ)
* Trying 94.237.62.184:40933... * Connected to 94.237.62.184 (94.237.62.184) port 40933 (#0) > GET / HTTP/1.1 > Host: 94.237.62.184:40933 > User-Agent: curl/7.81.0 > Accept: */* > * Mark bundle as not supporting multiuse < HTTP/1.1 200 OK < Date: Thu, 02 Jan 2025 19:03:22 GMT < Server: Apache/2.4.41 (Ubuntu) < Vary: Accept-Encoding < Content-Length: 348 < Content-Type: text/html; charset=UTF-8 * Connection #0 to host 94.237.62.184 left intact kappa@kappa-Aspire-Z5600:~$
2.4.41
The server above loads the flag after the page is loaded. Use the Network tab in the browser devtools to see what requests are made by the page, and find the request to the flag.
http://83.136.253.216:44629/flag_327a6c4304ad5938eaf0efb6cc3e53dc.txt
HTB{p493_r3qu3$t$_m0n!t0r}
Authenticate to with user "admin" and password "admin"
The exercise above seems to be broken, as it returns incorrect results. Use the browser devtools to see what is the request it is sending when we search, and use cURL to search for 'flag' and obtain the flag.
Obtain a session cookie through a valid login, and then use the cookie with cURL to search for the flag through a JSON POST request to '/search.php'
HTTP/1.1 200 OK Date: Thu, 02 Jan 2025 19:48:16 GMT Server: Apache/2.4.41 (Ubuntu) Set-Cookie: PHPSESSID=bm21tgunjsu3sc7fiaje6dd2mc; path=/ Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate Pragma: no-cache Vary: Accept-Encoding Content-Length: 1554 Content-Type: text/html; charset=UTF-8
First, try to update any city's name to be 'flag'. Then, delete any city. Once done, search for a city named 'flag' to get the flag.
HTB{crud_4p!_m4n!pul4t0r}